<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@ page session="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<html>
<head>
	<META http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Pools view</title>
	<link rel="stylesheet" href="<c:url value="/resources/blueprint/screen.css" />" type="text/css" media="screen, projection">
	<link rel="stylesheet" href="<c:url value="/resources/blueprint/print.css" />" type="text/css" media="print">
	<!--[if lt IE 8]>
		<link rel="stylesheet" href="<c:url value="/resources/blueprint/ie.css" />" type="text/css" media="screen, projection">
	<![endif]-->
</head>	
<body>
	<a href="/admin/event/create">Create Event </a>
	
<div class="container">

	<h1>
		View All Events
	</h1>
	<div class="span-12 last">	
	<table>
	<tr>
	<td> Id
	</td>
	<td> Code
	</td>
	<td> Name
	</td>	
	<td> Start
	</td>
	<td> End 
	</td>
	</tr>
	<c:forEach var="event" items="${allEvents}">
	<tr>
	<td><a href="/admin/event/${event.id}">${event.id}</a>
	</td>
	<td>${event.name}
	</td>	
	<td>${event.label}
	</td>
	<td>${event.startDate}
	</td>
	<td>${event.endDate}
	</td>	
	</tr>
	</c:forEach>

	</table>
	</div>
	<hr>	
</div>
</body>
</html>